/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class SmokeSensor {
    static categoryCode = '010020036';

    static categoryName = '烟雾传感器';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return SmokeSensor.categoryCode;
    }

    get categoryName() {
        return SmokeSensor.categoryName;
    }

    getAlarmDuration(params) {
        return command({
            method: 'getAlarmDuration',
            methodId: 'pkp1XMvx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getAlarmStatus(params) {
        return command({
            method: 'getAlarmStatus',
            methodId: 'phEq1DZS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getAlarmSwitch(params) {
        return command({
            method: 'getAlarmSwitch',
            methodId: 'pdN73u03',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getAlarmThreshold(params) {
        return command({
            method: 'getAlarmThreshold',
            methodId: 'p3deL4cG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getAlarmVolume(params) {
        return command({
            method: 'getAlarmVolume',
            methodId: 'pz93pKfb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getIndicatorSwitch(params) {
        return command({
            method: 'getIndicatorSwitch',
            methodId: 'p0crQllq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getPreheatStatus(params) {
        return command({
            method: 'getPreheatStatus',
            methodId: 'pXZuumk1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSensitivity(params) {
        return command({
            method: 'getSensitivity',
            methodId: 'pBTQg5Ik',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSmokeValue(params) {
        return command({
            method: 'getSmokeValue',
            methodId: 'ptRSbshV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAlarmDuration(params) {
        return command({
            method: 'setAlarmDuration',
            methodId: 'pUPQO3JC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAlarmSwitch(params) {
        return command({
            method: 'setAlarmSwitch',
            methodId: 'peHyqS6w',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAlarmThreshold(params) {
        return command({
            method: 'setAlarmThreshold',
            methodId: 'ppAXiVsU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAlarmVolume(params) {
        return command({
            method: 'setAlarmVolume',
            methodId: 'pZgRtGyA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setIndicatorSwitch(params) {
        return command({
            method: 'setIndicatorSwitch',
            methodId: 'pGox7xPr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMute(params) {
        return command({
            method: 'setMute',
            methodId: 'pDrhEcRZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSelfCheck(params) {
        return command({
            method: 'setSelfCheck',
            methodId: 'pghzWYxL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSensitivity(params) {
        return command({
            method: 'setSensitivity',
            methodId: 'p1vFB8nd',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default SmokeSensor;
